﻿using QuanLyChoVayCaNhan.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QuanLyChoVayCaNhan.Classes
{
    public class ModelManager
    {
        private static ModelManager INSTANCE = new ModelManager();
        public static ModelManager GetInstance()
        {
            return INSTANCE;
        }

        private VayVonEntities _db = null;
        public VayVonEntities db
        {
            get
            {
                if (_db == null) _db = new VayVonEntities();
                return _db;
            }
        }
    }
}
